<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="/Public/admin/css/style.css" rel="stylesheet">
<link href="/Public/admin/css/font-awesome.min.css" rel="stylesheet">
<title>{$title}</title>
</head>

<body>
    <div class="breadNav">
          <ul class="breadNavBar">
              <li><i class="icon-home" style="font-size:16px"></i></li>
              <li><a href="javascript:;" onClick="parent.location.reload('/Admin/Index/index');">首页</a></li>
              <li>&gt;</li>
              <li><a href="/Admin/Category/categoryList">题库分类</a></li>
              <li>&gt;</li>
              <li>编辑分类</li>
          </ul>
    </div>
    <div style="clear:both;"></div>
    <div class="filter">
        <a href="javascript:history.go(-1);" class="btn btn-primary btn-lg" id="backBtn"><i class="icon-reply"></i>&nbsp;返回</a>
    </div>
    <form class="from" method="post" action="">
        <div class="form-group">
            <label class="control-label">分类名称:</label>
            <input type="text" name="catName" class="form-control" value="{$catinfo.catname}" style="width:200px">
            <span class="helpBlock"></span>
        </div>
        <if condition="$catinfo['level'] eq 2">
            <div class="form-group">
                <label class="control-label">免费数量:</label>
                <input type="text" name="total" class="form-control" value="{$catinfo.total}" style="width:200px">
                <span class="helpBlock"></span>
            </div>
            <div class="form-group">
                <label class="control-label">题库价格:</label>
                <input type="text" name="price" class="form-control" value="{$catinfo.price}" style="width:200px">
                <span class="helpBlock"></span>
            </div>
        </if>
        <div class="form-group">
            <label class="control-label">&nbsp;</label>
            <input type="hidden" name="id" value="{$categoryInfo.id}" />
            <button type="submit" class="btn btn-primary"><i class='icon-check'></i>&nbsp;保存</button>
        </div>    
    </form>
</body>
<script src="/Public/js/jquery.min.js?ver=1.8.3"></script>
<script src="/Public/admin/js/main.js"></script>
<script src="/Public/js/vali.js"></script>
<script>
$(document).ready(function(){
	$("#isShow").val("{$categoryInfo.isShow}");
	$("form").vali({
		"control":[
			{"id":"catName","rule":"notNull","errorText":""}
		]
	})
});
</script>
</html>
